
<%@ page contentType="text/html;charset=UTF-8" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
    </head>
    <body>
        <div class="body">
            <div class="list">
                <table class="datagrid">
                    <thead>
                        <tr>
                            <g:sortableColumn property="descripcion" title="${message(code: 'servicio.nombre.label', default: 'Nombre')}" />
                            <g:sortableColumn property="estado" title="${message(code: 'servicio.estado.label', default: 'Estado')}" />
                            <th></th>
                        </tr>
                    </thead>
                    <tbody>
                        <g:each in="${servicios}" status="i" var="srv">
                            <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
                                <td>${srv.descripcion}</td>
                                <td>${srv.estado}</td>
                                <td>
                                    <g:if test="${srv.normal}">
                                        <span class="ico ok"></span>
                                    </g:if>
                                    <g:if test="${srv.demorado}">
                                        <span class="ico attention"></span>
                                    </g:if>
                                    <g:if test="${srv.paro}">
                                        <span class="ico error"></span>
                                    </g:if>
                                </td>
                            </tr>
                        </g:each>
                    </tbody>
                </table>
            </div>
        </div>
    </body>
</html>